libostree: Add some additional metadata to the summary file
authorPhilip Withnall <withnall@endlessm.com>
Tue, 2 May 2017 21:22:15 +0000 (22:22 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 8 May 2017 00:55:24 +0000 (00:55 +0000)
commit9aa8d420cf92335a1de08040f96f2b75dd99ccb5
tree593270b7646e6062f2dcc6a0da5ef58e513346e6
parente6666fc2e5060ad2a219796d929017d3208da90b
libostree: Add some additional metadata to the summary file

 • Commit timestamps, so it’s easy to work out whether a given commit is
   newer than the one we have locally
 • Summary file timestamp, so it’s easy to work out whether the summary
   file is more up to date than another summary file
 • Summary file expiry time, so clients can work out when they should
   expect the summary file to next be updated, and hence can query for
   it at roughly the right time

The expiry time requires input from the user, so is currently never set
automatically. Programs using libostree can set it if they wish.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #826
Approved by: cgwalters
src/libostree/ostree-core.h
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c